<template>
  <div class="box">
    <div class="corporation_name">
      <div>
        <div class="enterprise_icon" :style="{ background: color }">{{delAll.jkJbxxSfxx.shortName}}</div>
      </div>
      <div class="corporation_text">{{delAll.jkJbxxSfxx.d2CorpName}}</div>
    </div>
    <div class="echarts_box">
      <img
        v-if="level == '高'"
        src="https://zx-1311146360.cos.ap-shanghai.myqcloud.com/kuijingying/6.png"
        alt=""
      />
      <img
        v-if="level == '中'"
        src="https://zx-1311146360.cos.ap-shanghai.myqcloud.com/kuijingying/5.png"
        alt=""
      />
      <img
        v-if="level == '低'"
        src="https://zx-1311146360.cos.ap-shanghai.myqcloud.com/kuijingying/7.png"
        alt=""
      />
    </div>
    <div class="check_info" v-for="(item, index) in list" :key="index">
      <div>
        <img src="~img/lookAround/cancel_icon.svg" alt="" />
      </div>
      <div class="check_info_right">
        <div class="check_info_title">{{ item.name }}</div>
        <div class="check_info_text">{{ item.desc }}</div>
      </div>
    </div>
    <!-- <div class="check_info">
      <div>
        <img src="~img/lookAround/cancel_icon.svg" alt="" />
      </div>
      <div class="check_info_right">
        <div class="check_info_title">缴纳公积金人数大于1</div>
        <div class="check_info_text">企业存在按月缴纳公积金人数大于1的情况</div>
      </div>
    </div>
    <div class="check_info">
      <div>
        <img src="~img/lookAround/cancel_icon.svg" alt="" />
      </div>
      <div class="check_info_right">
        <div class="check_info_title">存在纳税记录</div>
        <div class="check_info_text">企业一年内存在缴纳税款记录</div>
      </div>
    </div> -->
  </div>
</template>
<script>
import { seeOperation } from "@/interfaces/lookAround/index.js";
export default {
  name: "",
  /*1. Vue扩展 */
  extends: "", // extends和mixins都扩展逻辑，需要重点放前面
  mixins: [],
  components: {},
  /* 2. Vue数据 */
  props: {},
  model: { prop: "", event: "" }, // model 会使用到 props
  data() {
    return {
      corpKey: "",
      level: "",
      list: [],
      delAll: {},
      color: "",
    };
  },
  computed: {},
  watch: {}, // watch 监控的是 props 和 data，有必要时监控computed
  /* 3. Vue资源 */
  filters: {},
  directives: {},
  /* 4. Vue生命周期 */
  created() {
    this.corpKey = this.$route.query.corpKey;
    this.delAll = JSON.parse(this.$route.query.delAll);
    console.log(this.delAll.jkJbxxSfxx)
    this.color = this.$route.query.color;
    this.getInfo();
  },
  mounted() {},
  destroy() {},
  /* 5. Vue方法 */
  methods: {
    async getInfo() {
      let params = {
        corpKey: this.corpKey,
      };

      const res = await seeOperation({ ...params });
      console.log(res, "this.score");
      this.level = res.data.level;
      this.list = res.data.list;
    },
  }, // all the methods should be put here in the last
};
</script>
<style lang="scss" scoped>
.box{
  width: 100%;
  height: 100%;
  overflow: auto;
}
.enterprise_icon {
  width: 38px;
  height: 37px;
  line-height: 15px;
  padding: 4px 1px 1px 0;
  background-color: #d99d9a;
  font-size: 13px;
  color: white;
  text-align: center;
  border-radius: 5px;
  margin-top: 5px;
  // height: fit-content;
}
.corporation_name {
display: flex;
  padding: 10px;
}
.corporation_text {
  font-size: 17.33px;
  color: #000000;
  font-family: "PuHuiTi65";
  margin-left: 10px;
}
.echarts_box {
  width: 100%;
  height: 200px;
  margin-top: 20px;
  text-align: center;
  img {
    width: 265px;
  }
}
.check_info {
  width: 319px;
  height: 62px;
  margin: auto;
  background-color: #f7fbff;
  display: flex;
  align-items: center;
  padding: 10px;
  margin-top: 15px;
  img {
    width: 20.67px;
  }
}
.check_info_right {
  margin-left: 10px;
}
.check_info_title {
  font-size: 16px;
  // font-weight: bold;
  font-family: "PuHuiTi65";
}
.check_info_text {
  font-size: 12.67px;
  color: #6c6c6c;
  margin-top: 5px;
}
</style>
